import java.util.Random;
public class Random6 {
    public static void main (String[] args){
        //生产6个随机数
        Random random = new Random();
        //调用类中的方法
        int num = random.nextInt(6);
        int randomNum  =num +1;

        System.out.println("题目："+randomNum);
    }
}